home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 10974 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.6 KB

  1. Path: inforamp.net!ts28-10
  2. From: rmorin@inforamp.net (Randy Charles Morin)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Help:: Link Error
  5. Date: Tue, 12 Mar 96 03:32:59 GMT
  6. Organization: MiddleWorld SoftWare
  7. Message-ID: <4i2r9r$nfn@sam.inforamp.net>
  8. References: <4i1l3f$kgj@netnews.ntu.edu.tw>
  9. NNTP-Posting-Host: ts28-10.tor.inforamp.net
  10. X-Newsreader: News Xpress Version 1.0 Beta #4
  11.  
  12. In article <4i1l3f$kgj@netnews.ntu.edu.tw>,
  13.    ru@zeus.ee.ntu.edu.tw (Jyh-ru Lee) wrote:
  14. >Hello:
  15. >
  16. >   I write a program for windows 3.1, using VC 1.52
  17. >   Following error message appear as VC link my exe file:
  18. >   "LINK: error: automatic data segment plus heap exceed 64K"
  19. >   Would you please tell me how to solve it ?
  20. >   Thanks a lot !
  21.  
  22. This was from Borland, but it still applies
  23. -------------------------------------------
  24. The sum of the DGROUP physical segment, local heap, and stack exceeds 64K. Fix 
  25. this by specifying smaller values for the HEAPSIZE and STACKSIZE statements in 
  26. the module definition file or by decreasing the size of the near data in 
  27. DGROUP. The map file shows the sizes of the component segments in DGROUP. The 
  28. /s TLINK command-line option is useful for determining how much each module 
  29. contributes to DGROUP.
  30. -------------------------------------------
  31.  
  32. Basically, I think this should also mention that the error can be overcome by 
  33. going to a better memory model.  If you use a memory model that only uses near 
  34. data (small and medium models would run into problems here), you can go to a 
  35. memory model that uses far data (compact, medium, huge or flat) and save data 
  36. segment space.
  37.  
  38. Agrivar
  39.